package com.rui.principles.demo02.before;
/**
 * @className    : Square
 * @author       : [锐神NO.3]
 * @version      : [v1.0]
 * @createTime   : [2022/2/8 14:17]
 * @description  : [正方形]
 */
 
public class Square extends Rectangle{

    @Override
    public void setLength(double length) {
        super.setLength(length);
        super.setWidth(length);
    }

    @Override
    public void setWidth(double width) {
        super.setLength(width);
        super.setWidth(width);
    }
}
